package com.joysuch.wwyt.bp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.joysuch.wwyt.bp.bean.contractor.BpContractorViolationRecordBean;
import com.joysuch.wwyt.core.common.ajax.ResultBean;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Date;

public interface BpContractorViolationRecordsManagementService {


    Page<BpContractorViolationRecordBean> page(Pageable page, String contractorId);

    ResultBean getById(Long id);

    ResultBean save(BpContractorViolationRecordBean bean);

    ResultBean delete(Long id);

    IPage<BpContractorViolationRecordBean> getViolationRecordsByContractor(String contractorName, Date beginTime, Date endTime,Integer pageNo,Integer pageSize);
}
